import { defineStore } from "pinia";
import { ref } from "vue";

const useLoginStore = defineStore("userInfo", () => {
  const isAuthenticated = ref(false);
  const changeAuthority = (state: boolean) => {
    isAuthenticated.value = state;
  };
  return {
    isAuthenticated,
    changeAuthority,
  };
},
  { persist: true }
);

export { useLoginStore };
